import { useContext } from "react"
import { Context } from "./UseContextDemo"
export default function SonCom(){

   const cont:any=  useContext(Context);
return (
     <div style={{background:'#ffff00',width:600,height:200}}>
         {cont.title}
        子组件1
        
        </div>
)
}